package com.ruoyi.project.dict.material.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Date;

/**
 * 学习资料对象 material
 *
 * @author shixiangwen
 * @date 2020-05-08
 */
public class Material extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 类型
     */
    @Excel(name = "类型")
    private Long type;

    /**
     * 学习范围
     */
    @Excel(name = "学习范围")
    private Long range;

    /**
     * 标题
     */
    @Excel(name = "标题")
    private String name;

    /**
     * 内容介绍
     */
    @Excel(name = "内容介绍")
    private String summary;

    /**
     * 标签
     */
    @Excel(name = "标签")
    private String tag;

    /**
     * 上传用户
     */
    @Excel(name = "上传用户")
    private Long kkid;

    /**
     * 审核状态
     */
    @Excel(name = "审核状态")
    private Integer approveSt;

    /**
     * 价格
     */
    @Excel(name = "价格")
    private Long price;

    /**
     * 是否免费
     */
    @Excel(name = "是否负费广告")
    private Integer ad;

    /**
     * 上传时间
     */
    @Excel(name = "上传时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /**
     * 付费次数
     */
    @Excel(name = "付费次数")
    private Long payCount;

    /**
     * 分享次数
     */
    @Excel(name = "分享次数")
    private Long share;

    /**
     * 点赞次数
     */
    @Excel(name = "点赞次数")
    private Long praise;

    /**
     * 来源
     */
    @Excel(name = "来源")
    private Integer source;

    private String[] tags;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setType(Long type) {
        this.type = type;
    }

    public Long getType() {
        return type;
    }

    public void setRange(Long range) {
        this.range = range;
    }

    public Long getRange() {
        return range;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getSummary() {
        return summary;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public String getTag() {
        return tag;
    }

    public void setKkid(Long kkid) {
        this.kkid = kkid;
    }

    public Long getKkid() {
        return kkid;
    }

    public void setApproveSt(Integer approveSt) {
        this.approveSt = approveSt;
    }

    public Integer getApproveSt() {
        return approveSt;
    }

    public void setPrice(Long price) {
        this.price = price;
    }

    public Long getPrice() {
        return price;
    }

    public Integer getAd() {
        return ad;
    }

    public void setAd(Integer ad) {
        this.ad = ad;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setPayCount(Long payCount) {
        this.payCount = payCount;
    }

    public Long getPayCount() {
        return payCount;
    }

    public void setShare(Long share) {
        this.share = share;
    }

    public Long getShare() {
        return share;
    }

    public void setPraise(Long praise) {
        this.praise = praise;
    }

    public Long getPraise() {
        return praise;
    }

    public void setSource(Integer source) {
        this.source = source;
    }

    public Integer getSource() {
        return source;
    }

    public String[] getTags() {
        return tags;
    }

    public void setTags(String[] tags) {
        this.tags = tags;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()).append("type", getType()).append("range", getRange()).append("name", getName())
                .append("summary", getSummary()).append("tag", getTag()).append("kkid", getKkid()).append("approveSt", getApproveSt()).append("price", getPrice()).append("ad", getAd())
                .append("createdTime", getCreatedTime()).append("payCount", getPayCount()).append("share", getShare()).append("praise", getPraise()).append("source", getSource()).toString();
    }
}
